Fix a typo and a memory management bug
authorMatthias Clasen <matthiasc@src.gnome.org>
Sun, 8 Jul 2007 03:59:30 +0000 (03:59 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Sun, 8 Jul 2007 03:59:30 +0000 (03:59 +0000)
svn path=/trunk/; revision=18400

ChangeLog
gtk/gtkwidget.c

index 1890dd7e59e098c34c75a230cc6365568ed5ef15..de7971429e2ce9d459d67cb678ae7db637bcc41b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2007-07-07  Matthias Clasen <mclasen@redhat.com>
+
+       * gtk/gtkwidget.c: Fix some typos, and a memory management bug.  
+
 2007-07-08  Johan Dahlin  <jdahlin@async.com.br>
 
        * gtk/gtkwidget.c (gtk_widget_buildable_custom_tag_start): 
index 4f3e6ba9faa73891487b58c1aa906563d724286a..36fad36974d91b5d92e63e6c084a35850856e2be 100644 (file)
@@ -262,12 +262,12 @@ static gboolean         gtk_widget_buildable_custom_tag_start   (GtkBuildable
                                                                  const gchar      *tagname,
                                                                  GMarkupParser    *parser,
                                                                  gpointer         *data);
-static void             gtk_widget_buildable_custom_finshed     (GtkBuildable     *buildable,
+static void             gtk_widget_buildable_custom_finished    (GtkBuildable     *buildable,
                                                                  GtkBuilder       *builder,
                                                                  GObject          *child,
                                                                  const gchar      *tagname,
                                                                  gpointer          data);
-static void             gtk_widget_buildable_parser_finshed     (GtkBuildable     *buildable,
+static void             gtk_widget_buildable_parser_finished    (GtkBuildable     *buildable,
                                                                  GtkBuilder       *builder);
 
      
@@ -8451,9 +8451,9 @@ gtk_widget_buildable_interface_init (GtkBuildableIface *iface)
   iface->set_name = gtk_widget_buildable_set_name;
   iface->get_name = gtk_widget_buildable_get_name;
   iface->set_buildable_property = gtk_widget_buildable_set_buildable_property;
-  iface->parser_finished = gtk_widget_buildable_parser_finshed;
+  iface->parser_finished = gtk_widget_buildable_parser_finished;
   iface->custom_tag_start = gtk_widget_buildable_custom_tag_start;
-  iface->custom_finished = gtk_widget_buildable_custom_finshed;
+  iface->custom_finished = gtk_widget_buildable_custom_finished;
 }
 
 static void
@@ -8486,8 +8486,8 @@ gtk_widget_buildable_set_buildable_property (GtkBuildable *buildable,
 }
 
 static void
-gtk_widget_buildable_parser_finshed (GtkBuildable *buildable,
-                                    GtkBuilder   *builder)
+gtk_widget_buildable_parser_finished (GtkBuildable *buildable,
+                                     GtkBuilder   *builder)
 {
   if (g_object_get_qdata (G_OBJECT (buildable), quark_builder_has_default))
     gtk_widget_grab_default (GTK_WIDGET (buildable));
@@ -8567,7 +8567,7 @@ gtk_widget_buildable_custom_tag_start (GtkBuildable     *buildable,
 
   if (strcmp (tagname, "accelerator") == 0)
     {
-      parser_data = g_new0 (AccelGroupParserData, 1);
+      parser_data = g_slice_new0 (AccelGroupParserData);
       parser_data->object = g_object_ref (buildable);
       *parser = accel_group_parser;
       *data = parser_data;
@@ -8592,11 +8592,11 @@ gtk_widget_buildable_custom_tag_start (GtkBuildable     *buildable,
 }
 
 static void
-gtk_widget_buildable_custom_finshed (GtkBuildable *buildable,
-                                    GtkBuilder   *builder,
-                                    GObject      *child,
-                                    const gchar  *tagname,
-                                    gpointer      user_data)
+gtk_widget_buildable_custom_finished (GtkBuildable *buildable,
+                                     GtkBuilder   *builder,
+                                     GObject      *child,
+                                     const gchar  *tagname,
+                                     gpointer      user_data)
 {
   AccelGroupParserData *data;
   GtkWidget *toplevel;